package com.wuqing.mybatisredisdemo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author 卢文昊
 * @since 2021-08-10
 */
@Data
public class Class implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String name;

    @Override
    public String toString() {
        return "Class{" +
        "id=" + id +
        ", name=" + name +
        "}";
    }
}
